//
//  DJAutoLayoutTableCell.swift
//  dj-learn-Swift
//
//  Created by Sun Jae on 2022/4/26.
//  Copyright © 2022 S.J. All rights reserved.
//

import UIKit

class DJAutoLayoutTableCell: UITableViewCell {

    var label = UILabel()
    
    override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        label.numberOfLines = 0
        self.contentView.addSubview(label)
        label.snp.makeConstraints { (make) in
            make.edges.equalTo(self.contentView)
                .inset(UIEdgeInsets(top: 10, left: 10, bottom: 10, right: 10))
        }
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
}
